//
//  Web_themeViewController.m
//  UI_HLJ_Frame
//
//  Created by dlios on 15-7-7.
//  Copyright (c) 2015年 毕宏伟. All rights reserved.
//

#import "Web_themeViewController.h"

@interface Web_themeViewController ()<UIWebViewDelegate>
@property(nonatomic,retain)UIWebView *web;
@end

@implementation Web_themeViewController
- (void)dealloc
{
    [_web  release];

    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];

   
    self.web = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height-64-49)];
    self.web.scalesPageToFit =YES; //自动进行屏幕的缩放适应
    [self.view addSubview:self.web];
    self.web.delegate =self;
    NSURL *url =[NSURL URLWithString:self.url];

    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    
    [_web loadRequest:request];
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
